package singleton;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class Single {
    private static volatile Single single;

    private Single() {

    }

    public Single create() {
        if (single == null)
            synchronized (single) {
                if (single == null)
                    single = new Single();
                return single;
            }
        return single;
    }


}
